comvoultion sum using matrix method